package org.csu.mypetstore.api.service;

import org.csu.mypetstore.api.common.CommonResponse;
import org.csu.mypetstore.api.vo.ChatUserVO;
import org.csu.mypetstore.api.vo.ContactDataVO;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface ChatService {
    CommonResponse<List<ChatUserVO>> findUsers(String keyword, String username);

    CommonResponse<List<ChatUserVO>> findGroups(String keyword, String username);

    CommonResponse<ContactDataVO> addUser(String friendName, String username);

    CommonResponse<ContactDataVO> enterGroup(String groupId, String username);

    CommonResponse<ContactDataVO> createGroup(String groupId, String groupName, String header);

    CommonResponse<List<ContactDataVO>> getFriendsAndGroups(String username);
}
